package reign.engine;

import java.util.HashMap;
import java.util.Properties;

import reign.engine.structures.ResourceSupply;
import reign.engine.structures.Supply;
import reign.engine.structures.decks.ResourceDeck;
import reign.engine.structures.decks.SupplyDeck;
import reign.network.host.Session;
import reign.network.user.User;

public class Game {

	private Session users;
	private Supply supply;
	private ResourceSupply resources;
	private HashMap<User,Properties> playerInfo;
	private final static String PLAYER_LIFE = "Life";
	
	
	public Game(Session user)
	{
		users = user;
		supply = new Supply();
		resources = new ResourceSupply();
		playerInfo = new HashMap<User,Properties>();
	}
	
	public void initGame(SupplyDeck [] supplyCards,ResourceDeck [] resourceCards)
	{
		supply.addDecks(supplyCards);
		resources.addDecks(resourceCards);
		for(int i = 0; i < users.getUsers().length;i++)
		{
			Properties addMe = new Properties();
			addMe.setProperty(PLAYER_LIFE,Constants.STARTING_LIFE);
			playerInfo.put(users.getUsers()[i], addMe);
		}
	}
	
	
}
